var employmentService = require('../service/employmentService')

module.exports = {
    async addList(req, res) {
        var result = await employmentService.addList(req.body)
        res.send(result)
    },
    async getList(req, res) {
        var result = await employmentService.getList()
        res.send(result)
    },
    async update(req, res) {
        var result = await employmentService.update(req.params.id, req.body)
        res.send(result)
    },
    async delete(req, res) {
        var result = await employmentService.delete(req.body)
        res.send(result)
    }
}